Ext.define("SHApp.EmployeeInfo.FamilyInfo.Form", {
    extend: "BLBTSystem.Form",
    submitUrl: "api/familyinfo?format=json",
    winWidth: 395,
    winHeight: 235,
    layout: { type: "vbox", align: "stretch" },
    initComponent: function () {
        Ext.apply(this);
        this.createItems();
        this.callParent(arguments);
    },
    createItems: function () {
        var me = this;
        this.items = [
				{
				    xtype: "textfield",
				    fieldLabel: "ID",
				    name: "Id",
				    hidden: true
				}, Ext.create("BLBTSystem.CmbYesNo", {
				    fieldLabel: "<span style='color:red'>*</span>亲属关系",
				    fields: ["text"],
				    data: [["父亲"], ["母亲"], ["儿女"], ["兄弟姐妹"]],
				    valueField: "text",
				    displayField: "text",
				    name: "KinShip",
				    maxLength: 50,
				    allowBlank: false,
				    blankText: "请选择亲属关系!"
				}), {
				    fieldLabel: "<span style='color:red'>*</span>姓名",
				    allowBlank: false,
				    blankText: "请输入姓名!",
				    xtype: "textfield",
				    name: "Name",
				    maxLength: 50
				}, {
				    fieldLabel: "证件",
				    xtype: "textfield",
				    name: "Identification",
				    maxLength: 50
				}, {
				    xtype: "datefield",
				    fieldLabel: "生日",
				    value: new Date(),
				    name: "Birthday",
				    format: 'Y-m-d'
				}, {
				    fieldLabel: "<span style='color:red'>*</span>员工Id",
				    allowBlank: false,
				    blankText: "请输入员工Id!",
				    xtype: "hiddenfield",
				    name: "EmpId"
				}, {
				    xtype: "hiddenfield",
				    name: "EmpName",
				    fieldLabel: "员工姓名"
				}
		];
    }

})